/**
 * @method table表格的标题
 */
export const columns = [
    {
        title: '凭证编号',
        dataIndex: 'code',
        slotName: 'code',
        ellipsis: true,
        width: 200,
    },
    {
        title: '凭证名称',
        dataIndex: 'name',
        slotName: 'name',
        ellipsis: true,
        width: 150,
    },
    {
        title: '凭证额度',
        dataIndex: 'total_amount',
        slotName: 'total_amount',
        ellipsis: true,
        width: 100,
    },
    {
        title: '数据资产相关已分摊比例',
        dataIndex: 'test',
        slotName: 'test',
        ellipsis: true,
        width: 200,
    },
    {
        title: '数据资产相关已分摊金额',
        dataIndex: 'allocated_amount',
        slotName: 'allocated_amount',
        ellipsis: true,
        width: 200,
    },
    {
        title: '添加人',
        dataIndex: 'create_user_name',
        slotName: 'create_user_name',
        ellipsis: true,
        width: 120,
    },
    {
        title: '添加时间',
        dataIndex: 'create_time',
        slotName: 'create_time',
        width: 200,
    },
    {
        title: '更新人',
        dataIndex: 'update_user_name',
        slotName: 'update_user_name',
        width: 120,
    },
    {
        title: '更新时间',
        dataIndex: 'update_time',
        slotName: 'update_time',
        width: 200,
    },
    {
        title: '操作',
        slotName: 'operator',
        width: 250,
        fixed: 'right',
        align: 'right'
    }
];
export const tableData = [
    {
        id: 1,
        code: '0001',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 2,
        code: '0002',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 3,
        code: '0003',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 4,
        code: '0004',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 5,
        code: '0005',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 6,
        code: '0006',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1200,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 7,
        code: '0007',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 8,
        code: '0008',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 9,
        code: '0009',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 10,
        code: '0010',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 2,
        code: '0002',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 3,
        code: '0003',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 4,
        code: '0004',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 5,
        code: '0005',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 6,
        code: '0006',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1200,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 7,
        code: '0007',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 8,
        code: '0008',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 9,
        code: '0009',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
    {
        id: 10,
        code: '0010',
        name: '资产名称',
        total_amount: 1000,
        allocated_amount: 1000,
        create_user_name: '小三',
        create_time: '2021-09-01',
        update_user_name: '小四',
        create_time_start: '2021-09-01',
        create_time_end: '2021-09-01',
    },
]


export const Rules = {
    credential_code: [
        { required: true, message: '请输入凭证名称', trigger: 'change' }
    ],
    credential_name: [
        { required: true, message: '请输入凭证编号', trigger: 'change' },
    ],
};
export function CreateColumnData() {
    return {
        summary: '',//凭证摘要
        accounting_subject_code: '',//凭证编号
        accounting_subject: '',//会计科目
        accounting_subject_detail: '',//明细科目
        amount: '',//凭证增减值
    };
}
export const showDetailTableData = [
    {
        title: '序号',
        dataIndex: 'index',
        slotName: 'index',
    },
    {
        title: '凭证摘要',
        dataIndex: 'summary',
        slotName: 'summary',
    },
    {
        title: '凭证编号',
        dataIndex: 'accounting_subject_code',
        slotName: 'accounting_subject_code',
    },
    {
        title: '会计科目',
        dataIndex: 'accounting_subject',
        slotName: 'accounting_subject',
    },
    {
        title: '明细科目',
        dataIndex: 'accounting_subject_detail',
        slotName: 'accounting_subject_detail',
    },
    {
        title: '凭证增减值',
        slotName: 'amount',
        dataIndex: 'amount'
    },
]

export const addTableData = [
    {
        title: '序号',
        dataIndex: 'index',
        slotName: 'index',
    },
    {
        title: '凭证摘要',
        dataIndex: 'summary',
        slotName: 'summary',
    },
    {
        title: '凭证编号',
        dataIndex: 'accounting_subject_code',
        slotName: 'accounting_subject_code',
    },
    {
        title: '会计科目',
        dataIndex: 'accounting_subject',
        slotName: 'accounting_subject',
    },
    {
        title: '明细科目',
        dataIndex: 'accounting_subject_detail',
        slotName: 'accounting_subject_detail',
    },
    {
        title: '凭证增减值',
        slotName: 'amount',
        dataIndex: 'amount'
    },
    {
        title: '操作',
        slotName: 'operator',
        dataIndex: 'operator',
        align: 'right'
    }
]

// 关联信息表格
export const associationTableDataColumns = [
    {
        title: '序号',
        dataIndex: 'index',
        slotName: 'index',
    },
    {
        title: '标的名称',
        dataIndex: 'item_name',
        slotName: 'item_name',
    },
    {
        title: '类型',
        dataIndex: 'item_type',
        slotName: 'item_type',
    },
    {
        title: '关联项目',
        dataIndex: 'asset_project_name',
        slotName: 'asset_project_name',
    },
    {
        title: '金额',
        dataIndex: 'amount',
        slotName: 'amount',
        ellipsis: true,
        width: 100,
    },
    {
        title: '操作',
        slotName: 'operator',
        dataIndex: 'operator',
        align: 'right'
    },
]

//+号的第一个表格
export const associationTableFirstDataColumns = [

    {
        title: '标的名称',
        dataIndex: 'item_name',
        slotName: 'item_name',
    },
    {
        title: '版本号',
        dataIndex: 'version',
        slotName: 'version',
    },
    {
        title: '类型',
        dataIndex: 'item_type',
        slotName: 'item_type',
    },
]

//+号的第二个表格
export const associationTableSecondDataColumns = [
    {
        title: '序号',
        dataIndex: 'index',
        slotName: 'index',
    },
    {
        title: '标的名称',
        dataIndex: 'item_name',
        slotName: 'item_name',
    },
    {
        title: '版本号',
        dataIndex: 'version',
        slotName: 'version',
    },
    {
        title: '类型',
        dataIndex: 'item_type',
        slotName: 'item_type',
    },
    {
        title: '关联项目',
        dataIndex: 'linkProject',
        slotName: 'linkProject',
    },
    {
        title: '金额',
        dataIndex: 'amount',
        slotName: 'amount',
        width:120
    },
    {
        title: '操作',
        dataIndex: 'operator',
        slotName: 'operator',
        align: 'right'
    },
]



export const  AccountingSubjectArr  = [
    {
        code:'660201',
        name:'管理费用'
    },
    {
        code:'660202',
        name:'销售费用'
    },
    {
        code:'660203',
        name:'财务费用'
    },
    {
        code:'660204',
        name:'研发费用'
    },
    {
        code:'660205',
        name:'其他费用'
    }
]
export const  AccountingSubjectDetailArr  = [
    {
        code:'660201',
        name:'软件'
    },
    {
        code:'660202',
        name:'网络设备安装'
    },
    {
        code:'660203',
        name:'网络设备'
    },
    {
        code:'660204',
        name:'服务器'
    },
    {
        code:'660205',
        name:'数据库'
    },
    {
        code:'660206',
        name:'定制开发'
    }
]
